package com.dayaokeji.rhythmschoolstudent.client.mine.account.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.server_api.domain.School;

import java.util.List;

/**
 * Created by Gorden on 2017/9/28.
 */

public class SchoolListAdapter extends BaseQuickAdapter<School,BaseViewHolder> {

    public SchoolListAdapter(@Nullable List<School> schools) {
        super(R.layout.item_school_name, schools);
    }

    @Override
    protected void convert(BaseViewHolder helper, School item) {
        helper.setText(R.id.tv_name,item.getName());
    }
}
